﻿<?xml version="1.0" encoding="utf-8" ?>
<parameters>
	<!-- Prompts where to copy the content files and takes a web site path (such as "contoso.com/app"). -->
	<parameter name="Application Path" description="It is recommended that EonicWeb5 be installed as a web site root. Leave this parameter empty." tags="iisapp">
    		<parameterValidation type="AllowEmpty" />
		<parameterEntry type="ProviderPath" scope="iisapp" match="^eonicweb5CMS$" />
	</parameter>
	<!-- This is the parameter that is used to set ACLs on the root site folder -->
	<!--parameter name="SetAclParameter1" description="Sets the ACL on the root site folder" defaultValue="{Application Path}" tags="Hidden">
		<parameterEntry type="ProviderPath" scope="setAcl" match="^eonicweb5CMS$" />
	</parameter-->

  <!--parameter name="SetAclParameter3" description="Sets the ACL on the bin folder" defaultValue="{Application Path}/bin" tags="Hidden">
    <parameterEntry type="ProviderPath" scope="setAcl" match="^eonicweb5CMS/bin$" />
  </parameter-->
  <!-- This is the parameter that is used to set ACLs on the css folder -->
  <!--parameter name="SetAclParameter5" description="Sets the ACL on the css folder" defaultValue="{Application Path}/css" tags="Hidden">
    <parameterEntry type="ProviderPath" scope="setAcl" match="^eonicweb5CMS/css$" />
  </parameter-->
  <!-- This is the parameter that is used to set ACLs on the media folder -->
  <!--parameter name="SetAclParameter8" description="Sets the ACL on the media folder" defaultValue="{Application Path}/media" tags="Hidden">
    <parameterEntry type="ProviderPath" scope="setAcl" match="^eonicweb5CMS/media$" />
  </parameter-->
 <!--parameter name="SetAclParameter9" description="Sets the ACL on the docs folder" defaultValue="{Application Path}/docs" tags="Hidden">
    <parameterEntry type="ProviderPath" scope="setAcl" match="^eonicweb5CMS/docs$" />
  </parameter-->
  <!-- This is the parameter that is used to set ACLs on the scripts folder -->
  <!--parameter name="SetAclParameter10" description="Sets the ACL on the scripts folder" defaultValue="{Application Path}/js" tags="Hidden">
    <parameterEntry type="ProviderPath" scope="setAcl" match="^eonicweb5CMS/js$" />
  </parameter-->
  <parameter name="SiteName" description="Enter the name this website will be known by." defaultValue="">
    <parameterEntry type="XmlFile" scope="\\eonic.web.config$" match="/web/add[@key='SiteName']/@value" />
  </parameter>

  <parameter name="Database Server" description="Location of your database server."  defaultValue="localhost">
    <parameterEntry type="XmlFile" scope="\\eonic.web.config$" match="/web/add[@key='DatabaseServer']/@value" />
  </parameter>
  <parameter name="Database Name" description="Enter Database Name" defaultValue="ew_demo_database" >
    <parameterEntry type="XmlFile" scope="\\eonic.web.config$" match="/web/add[@key='DatabaseName']/@value" />
  </parameter>
  <parameter name="Database Username" description="Enter Database Username" defaultValue="adminuser" >
    <parameterEntry type="XmlFile" scope="\\eonic.web.config$" match="/web/add[@key='DatabaseUsername']/@value" />
  </parameter>
  <parameter name="Database Password" description="Enter Database Password" defaultValue="adminpassword" >
    <parameterValidation type = "RegularExpression" validationString = "(?=^.{8,}$)((?=.*\d)|(?=.*\W+))(?![.\n])(?=.*[A-Z])(?=.*[a-z]).*$" /> 
    <parameterEntry type="XmlFile" scope="\\eonic.web.config$" match="/web/add[@key='DatabasePassword']/@value" />
  </parameter>
  <parameter name="Email Address" description="Enter the site administrators email address." defaultValue="support@eonic.co.uk">
    <parameterEntry type="XmlFile" scope="\\eonic.web.config$" match="/web/add[@key='SiteAdminEmail']/@value" />
  </parameter>

</parameters>